/*
package com.lzy.filter;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

import java.util.Collections;
import java.util.List;

*/
/**
 * 请求结果处理过滤器 post
 *
 * @author G by 2019/9/11 10:56
 *//*

@Slf4j
@Component
public class ResponseGatewayFilterFactory extends AbstractGatewayFilterFactory<ResponseGatewayFilterFactory.Config> {

    public ResponseGatewayFilterFactory() {
        super(ResponseGatewayFilterFactory.Config.class);
    }

    @Override
    public List<String> shortcutFieldOrder() {
        return Collections.singletonList("enabled");
    }

    @Override
    public GatewayFilter apply(Config config) {
        return (exchange, chain) -> chain.filter(exchange)
                .then(Mono.fromRunnable(() -> {
                    log.info("此处是处理请求返回过滤器");
                    */
/*HttpHeaders httpHeaders = exchange.getResponse().getHeaders();
                    httpHeaders.remove("userInfo");
                    httpHeaders.remove("uuid");
                    httpHeaders.remove("tenantId");
                    httpHeaders.remove("appId");*//*

                }));
    }

    @Data
    public static class Config {
        // 控制是否开启
        private boolean enabled;

        public Config() {
        }
    }
}
*/
